<?php // Do not delete these lines
	if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
		die ('Please do not load this page directly. Thanks!');

	if (!empty($post->post_password)) { // if there's a password
		if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) {  // and it doesn't match the cookie
			?>

			<p class="nocomments">This post is password protected. Enter the password to view comments.</p>

			<?php
			return;
		}
	}
?>

<?php if ($comments) : ?>
<section id="comments">
	<h3><?php comments_number('No Comments', 'One Comment', 'Comments' );?></h3>

	<ol>
	<?php $alt = false; ?>
	<?php foreach ($comments as $comment) : ?>
		<li id="comment-<?php comment_ID() ?>" class="<?php echo $comment->comment_type; if($odd){ echo ' alt'; $alt = !$alt;} ?>"><section>
			<address><?php comment_author_link() ?>
				<?php if ($comment->comment_approved == '0') : ?>
				<em>(Your comment is awaiting moderation.)</em>
				<?php endif; ?>
			</address>
			<footer>
				<a href="#comment-<?php comment_ID() ?>" rel="permalink" title="Permalink to this comment"><time datetime="<?php comment_date('c') ?>"><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></time></a> 
			</footer>
			<?php comment_text() ?>
			<?php #edit_comment_link('Edit','<p>', '</p>'); ?>
		</section>
		</li>
	<?php endforeach; /* end for each comment */ ?>
	</ol>
	<p>Subscribe to the <?php post_comments_feed_link('comments feed') ?>.</p>
</section>
<?php else : // this is displayed if there are no comments so far ?>
<section id="comments">
	<h3>Comments</h3>
	<?php if ('open' == $post->comment_status) : ?>
		<p><em>There are no comments yet. Subscribe to the <?php post_comments_feed_link('comments feed') ?>.</em></p>
	 <?php else : // comments are closed ?>
		<p>Comments are closed.</p>
	<?php endif; ?>
</section>
<?php endif; ?>

<?php if ('open' == $post->comment_status) : ?>
<section id="respond">
	<h3>Leave a Comment</h3>
	
	<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
		<p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">logged in</a> to post a comment.</p>
	<?php else: ?>
	
	<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
		<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
		
		<?php if ( $user_ID ) : ?>
			<p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Logout &#xBB;</a></p>
		<?php else : ?>
			<p><label for="author">Name: </label><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" tabindex="1" required="required" /></p>
			<p><label for="email">Email: </label><input type="email" name="email" id="email" value="<?php echo $comment_author_email; ?>" tabindex="2" required="required" /><small>(will not be published)</small></p>
			<p><label for="url">Website: </label><input type="url" name="url" id="url" value="<?php echo $comment_author_url; ?>" tabindex="3" />
			</p>
		<?php endif; ?>
	
		<p><textarea name="comment" tabindex="4"></textarea></p>
		<!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>-->
		
		<p><button type="submit" id="submit" tabindex="5">Submit Comment</button></p>
		<?php do_action('comment_form', $post->ID); ?>
	</form>
</section>
<?php endif; // If registration required and not logged in ?>


<?php endif; // if you delete this the sky will fall on your head ?>
